<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>订单管理</title>
	<%--静态包含base标签，css，jQuery文件，--%>
	<%@include file="/view/common/head.jsp"%></head>
	<style>
		.hidden_scroll{
			/*border: 1px solid red;*/
			height: 370px;
			overflow: hidden;
			width: 710px;
			position: relative;
		}
		.table_div{
			/*border: 1px solid red;*/
			height: 370px;
			overflow-y: auto;
			position: absolute;
			right:-20px;
		}
		#main .table_div table{
			margin-top: 10px;
		}
		.width_tr>th{
			font-size: 22px;
			width: 140px !important;
		}
		.width_tr>th:last-child{
			width: 130px !important;
			/*padding-right: 5px;*/
		}
		.width_td{
			width:75px !important;
		}
	</style>
<body>
<%@include file="/view/common/back.jsp"%>
	<div id="header">
<%--			<img class="logo_img" alt="" src="../../static/img/logo.gif" >--%>
			<span class="wel_word">订单管理系统</span>
		<%@include file="/view/common/manager_menu.jsp"%>
	<div>
		<a style="display:inline-block;padding-right:5px;" href="manage/clothesServlet?action=getClotheslist">返回</a>
	</div>
	</div>

	<div id="main">
		<table>
			<tr class="width_tr">
				<th>订单号</th>
				<th>日期</th>
				<th>金额</th>
				<th>状态</th>
				<th>详情</th>
			</tr>
		</table>
		<div class="hidden_scroll">
			<div  class="table_div">
				<table>
					<tr>
						<th></th>
						<th></th>
						<th></th>
						<th></th>
						<th></th>
					</tr>

					<c:forEach items="${requestScope.orderList}" var="orderlist">
						<tr>
							<td>${orderlist.order_id}</td>
							<td>${orderlist.create_time}</td>
							<td>${orderlist.price}</td>
							<c:if test="${orderlist.status == 0}">
								<td>出库</td>
							</c:if>
							<c:if test="${orderlist.status == 1}">
								<td>入库</td>
							</c:if>
							<td>
								<a href="/orderServlet?action=selectOrderItemByOrder_id&order_id=${orderlist.order_id}">查看详情</a>
							</td>
						</tr>
					</c:forEach>
				</table>
			</div>
		</div>


	</div>


	<%@include file="/view/common/footer.jsp"%>
</body>
</html>